package cn.hl.hm.entity;

import java.util.Date;
import java.util.List;

public class RouteVehiclePriceVO {
	List<RouteVehiclePrice> rList;
	Route route;
	String vehicleName;
	Date time;
	String vehicleLength;
	
	
	 
	public String getVehicleLength() {
		return vehicleLength;
	}
	public void setVehicleLength(String vehicleLength) {
		this.vehicleLength = vehicleLength;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getVehicleName() {
		return vehicleName;
	}
	public void setVehicleName(String vehicleName) {
		this.vehicleName = vehicleName;
	}
	public List<RouteVehiclePrice> getrList() {
		return rList;
	}
	public void setrList(List<RouteVehiclePrice> rList) {
		this.rList = rList;
	}
	public Route getRoute() {
		return route;
	}
	public void setRoute(Route route) {
		this.route = route;
	}
	  @Override  
	    public boolean equals(Object obj) {  
	  
	        //按照你想要的方法去比较，比如我这里比较的是姓名，号码，相等就返回true  
	        if(!(obj instanceof RouteVehiclePriceVO))  
	            return false;  
	        RouteVehiclePriceVO contactItem= (RouteVehiclePriceVO)obj;  
	        return (this.getVehicleName().equals(contactItem.getVehicleName())&& this.getRoute().getId().equals(contactItem.getRoute().getId()));  
	    }  
}
